export interface User {
  id: string;
  name: string;
  password: string;
  post: any;  // 当前选中的岗位
  posts: any[];   // 当前人员所有的岗位
  userId: string;
  phone: string;
  captcha: string;
  origin: string;
  terminal: string;
  accessKey: string;
}

export interface UserInfoModel {
  token: string;
  // tslint:disable-next-line:semicolon sessionId
  userAccount: User;
  terminal: string;
  platform: string;
}

export interface Login {
  username: string;
  password: string;
  phone: string;
  captcha: string;
}

export interface TokenInfo {
  hasToken: boolean;
}

/*作为当前用户存储在storage中的key的type*/
export type UserKeyType = 'currentUser';
